<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>基本设置</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/resource/layuiadmin/layui/css/layui.css" media="all">
</head>
<body>
<div style="padding: 20px; background-color: #F2F2F2;">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <form class="layui-form" action="">
                        <div class="layui-tab layui-tab-card">
                            <ul class="layui-tab-title">
                                <li class="layui-this">基本设置</li>
                                <li>信用设置</li>
                                <li>文件上传</li>
                            </ul>
                            <div class="layui-tab-content">
                                <!-- 基本设置 -->
                                <div class="layui-tab-item layui-show">
                                    <table class="layui-table" lay-even lay-skin="nob" lay-size="sm">
                                        <thead></thead>
                                        <tbody>
                                            <tr>
                                                <td>
                                                    <div class="layui-form-item">
                                                        <label class="layui-form-label">前台域名/地址</label>
                                                        <div class="layui-input-inline">
                                                            <textarea name="q_server_name" placeholder="请输入前台域名/地址" class="layui-textarea">{$data.q_server_name}</textarea>
                                                        </div>
                                                        <div class="layui-form-mid layui-word-aux">开头必须加通信协议，末尾不要留斜杠。如：https://www.baidu.com</div>
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="layui-form-item">
                                                        <label class="layui-form-label">后台域名/地址</label>
                                                        <div class="layui-input-inline">
                                                            <textarea name="h_server_name" placeholder="请输入后台域名/地址" class="layui-textarea">{$data.h_server_name}</textarea>
                                                        </div>
                                                        <div class="layui-form-mid layui-word-aux">开头必须加通信协议，末尾不要留斜杠。如：https://www.baidu.com</div>
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div class="layui-form-item">
                                                        <label class="layui-form-label">后台网站标题</label>
                                                        <div class="layui-input-inline">
                                                            <input type="text" name="manage_title" value="{$data.manage_title}" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                                                        </div>
                                                        <div class="layui-form-mid layui-word-aux"></div>
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="layui-form-item">
                                                        <label class="layui-form-label">商户后台网站标题</label>
                                                        <div class="layui-input-inline">
                                                            <input type="text" name="admin_title" value="{$data.admin_title}" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                                                        </div>
                                                        <div class="layui-form-mid layui-word-aux"></div>
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                            	<td>
                                                    <div class="layui-form-item">
                                                        <label class="layui-form-label">后台登录IP过滤</label>
                                                        <div class="layui-input-inline">
                                                            <input type="radio" name="manage_ip_white" value="1" title="是"{$data.manage_ip_white == 1 ? ' checked' : ''}>
                                                            <input type="radio" name="manage_ip_white" value="2" title="否"{$data.manage_ip_white == 2 ? ' checked' : ''}>
                                                            <!-- <input type="checkbox" name="manage_ip_white"{$data.manage_ip_white == 1 ? ' checked' : ''} lay-skin="switch" lay-filter="manage_ip_white" lay-text="开|关"> -->
                                                        </div>
                                                        <div class="layui-form-mid layui-word-aux">
                                                            <button type="button" class="layui-btn layui-btn-xs" onclick="window.location.href='/manage/base/ip_white'">去添加IP</button>
                                                        </div>
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="layui-form-item">
                                                        <label class="layui-form-label">自动审核</label>
                                                        <div class="layui-input-inline">
                                                            <input type="radio" name="auto_audit" value="1" title="是"{$data.auto_audit == 1 ? ' checked' : ''}>
                                                            <input type="radio" name="auto_audit" value="2" title="否"{$data.auto_audit == 2 ? ' checked' : ''}>
                                                            <!-- <input type="checkbox" name="manage_ip_white"{$data.manage_ip_white == 1 ? ' checked' : ''} lay-skin="switch" lay-filter="manage_ip_white" lay-text="开|关"> -->
                                                        </div>
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div class="layui-form-item">
                                                        <label class="layui-form-label">客服链接</label>
                                                        <div class="layui-input-inline">
                                                            <textarea name="service_url" placeholder="请输入客服链接" class="layui-textarea">{$data.service_url}</textarea>
                                                        </div>
                                                        <div class="layui-form-mid layui-word-aux"></div>
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="layui-form-item">
                                                        <label class="layui-form-label">聊天链接</label>
                                                        <div class="layui-input-inline">
                                                            <textarea name="chat_url" placeholder="请输入聊天链接" class="layui-textarea">{$data.chat_url}</textarea>
                                                        </div>
                                                        <div class="layui-form-mid layui-word-aux"></div>
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                            	<td>
                                                    <div class="layui-form-item">
                                                        <label class="layui-form-label">备案号</label>
                                                        <div class="layui-input-inline">
                                                            <input type="text" name="record_number" value="{$data.record_number}" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                                                        </div>
                                                        <div class="layui-form-mid layui-word-aux"></div>
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="layui-form-item">
                                                        <label class="layui-form-label">服务热线</label>
                                                        <div class="layui-input-inline">
                                                            <input type="text" name="service_hotline" value="{$data.service_hotline}" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                                                        </div>
                                                        <div class="layui-form-mid layui-word-aux"></div>
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                            	<td>
                                                    <div class="layui-form-item">
                                                        <label class="layui-form-label">官方QQ</label>
                                                        <div class="layui-input-inline">
                                                            <input type="text" name="official_QQ" value="{$data.official_QQ}" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                                                        </div>
                                                        <div class="layui-form-mid layui-word-aux"></div>
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="layui-form-item">
                                                        <label class="layui-form-label">客服QQ</label>
                                                        <div class="layui-input-inline">
                                                            <input type="text" name="Customer_QQ" value="{$data.Customer_QQ}" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                                                        </div>
                                                        <div class="layui-form-mid layui-word-aux"></div>
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div class="layui-form-item">
                                                        <label class="layui-form-label">上级返点</label>
                                                        <div class="layui-input-inline">
                                                            <input type="text" name="rebate1" value="{$data.rebate1}" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                                                        </div>
                                                        <div class="layui-form-mid layui-word-aux"></div>
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="layui-form-item">
                                                        <label class="layui-form-label">次上级返点</label>
                                                        <div class="layui-input-inline">
                                                            <input type="text" name="rebate2" value="{$data.rebate2}" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                                                        </div>
                                                        <div class="layui-form-mid layui-word-aux"></div>
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div class="layui-form-item">
                                                        <label class="layui-form-label">次次上级返点</label>
                                                        <div class="layui-input-inline">
                                                            <input type="text" name="rebate3" value="{$data.rebate3}" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                                                        </div>
                                                        <div class="layui-form-mid layui-word-aux"></div>
                                                    </div>
                                                </td>
                                                <td><div class="layui-form-item">
                                                        <label class="layui-form-label">邀请奖励</label>
                                                        <div class="layui-input-inline">
                                                            <input type="text" name="regment" value="{$data.regment}" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                                                        </div>
                                                        <div class="layui-form-mid layui-word-aux"></div>
                                                    </div></td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div class="layui-form-item">
                                                        <label class="layui-form-label">最低提现金额</label>
                                                        <div class="layui-input-inline">
                                                            <input type="text" name="min_w" value="{$data.min_w}" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                                                        </div>
                                                        <div class="layui-form-mid layui-word-aux"></div>
                                                    </div>
                                                </td>
                                                <td><div class="layui-form-item">
                                                        <label class="layui-form-label">最高提现金额</label>
                                                        <div class="layui-input-inline">
                                                            <input type="text" name="max_w" value="{$data.max_w}" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                                                        </div>
                                                        <div class="layui-form-mid layui-word-aux"></div>
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div class="layui-form-item">
                                                        <label class="layui-form-label">注册链接</label>
                                                        <div class="layui-input-inline">
                                                            <input type="text" name="reg_url" value="{$data.reg_url}" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                                                        </div>
                                                        <div class="layui-form-mid layui-word-aux"></div>
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="layui-form-item">
                                                        <label class="layui-form-label">必领</label>
                                                        <div class="layui-input-inline">
                                                            <input type="radio" name="is_b" value="1" title="是"{$data.is_b == 1 ? ' checked' : ''}>
                                                            <input type="radio" name="is_b" value="2" title="否"{$data.is_b == 2 ? ' checked' : ''}>
                                                        </div>
                                                        <div class="layui-form-mid layui-word-aux"></div>
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div class="layui-form-item">
                                                        <label class="layui-form-label">提现次数</label>
                                                        <div class="layui-input-inline">
                                                            <input type="text" name="w_num" value="{$data.w_num}" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                                                        </div>
                                                        <div class="layui-form-mid layui-word-aux"></div>
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="layui-form-item">
                                                        <label class="layui-form-label">前台默认语言</label>
                                                        <div class="layui-input-inline">
                                                            <select name="lang" lay-search="">
                                                                {foreach :config('custom.lang') as $key=>$value }
                                                                <option value="{$key}"{if $data.lang eq $key} selected{/if}>{$value}</option>
                                                                {/foreach}
                                                            </select>
                                                        </div>
                                                        <div class="layui-form-mid layui-word-aux"></div>
                                                    </div>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                                <!-- 信用社治 -->
                                <div class="layui-tab-item">
                                    <table class="layui-table" lay-even lay-skin="nob" lay-size="sm">
                                        <thead></thead>
                                        <tbody>
                                            <tr>
                                                <td>
                                                    <div class="layui-form-item">
                                                        <label class="layui-form-label">用户注册</label>
                                                        <div class="layui-input-inline">
                                                            <input type="text" name="reg_init" value="{$data.reg_init}" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                                                        </div>
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div class="layui-form-item">
                                                        <label class="layui-form-label">任务</label>
                                                        <div class="layui-input-inline">
                                                            信用低于<input type="text" name="credit_points_lt" value="{$data.credit_points_lt}" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">， 每天只能报名完成<input type="text" name="credit_points_task" value="{$data.credit_points_task}" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">次任务
                                                        </div>
                                                        <div class="layui-form-mid layui-word-aux"></div>
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div class="layui-form-item">
                                                        <label class="layui-form-label">封号信用分</label>
                                                        <div class="layui-input-inline">
                                                            <input type="text" name="credit_points_close" value="{$data.credit_points_close}" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                                                        </div>
                                                        <div class="layui-form-mid layui-word-aux"></div>
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div class="layui-form-item">
                                                        <label class="layui-form-label">签到（加）</label>
                                                        <div class="layui-input-inline">
                                                            <input type="text" name="signin_push" value="{$data.signin_push}" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                                                        </div>
                                                        <div class="layui-form-mid layui-word-aux"></div>
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div class="layui-form-item">
                                                        <label class="layui-form-label">完成当日首次任务（加）</label>
                                                        <div class="layui-input-inline">
                                                            <input type="text" name="first_win_push" value="{$data.first_win_push}" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                                                        </div>
                                                        <div class="layui-form-mid layui-word-aux"></div>
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div class="layui-form-item">
                                                        <label class="layui-form-label">未在规定时间内完成任务（减）</label>
                                                        <div class="layui-input-inline">
                                                            <input type="text" name="overdue_ded" value="{$data.overdue_ded}" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                                                        </div>
                                                        <div class="layui-form-mid layui-word-aux"></div>
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="layui-form-item">
                                                        <label class="layui-form-label">未按要求完成任务（减）</label>
                                                        <div class="layui-input-inline">
                                                            <input type="text" name="dissatisfy_ded" value="{$data.dissatisfy_ded}" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                                                        </div>
                                                        <div class="layui-form-mid layui-word-aux"></div>
                                                    </div>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                                <!-- 文件上传 -->
                                <div class="layui-tab-item">
                                    <table class="layui-table" lay-even="" lay-skin="nob" lay-size="sm">
                                            <tr>
                                            	<td>
                                                    <div class="layui-form-item">
                                                        <label class="layui-form-label">手机客户端</label>
                                                        <div class="layui-input-inline">
                                                            <div class="layui-upload">
                                                                <button type="button" class="layui-btn" id="mobile_client">
                                                                    <i class="layui-icon">&#xe67c;</i>上传图片
                                                                </button>
                                                                <div class="layui-upload-list">
                                                                    <img class="layui-upload-img" id="mobile_client_image" src="{$data.Mobile_client ?? ''}">
                                                                    <p id="mobile_client_text"></p>
                                                                </div>
                                                            </div>
                                                            <input type="hidden" name="Mobile_client" value="{$data.Mobile_client}" placeholder="" autocomplete="off" class="layui-input">
                                                        </div>
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="layui-form-item">
                                                        <label class="layui-form-label">微信公众号</label>
                                                        <div class="layui-input-inline">
                                                            <div class="layui-upload">
                                                                <button type="button" class="layui-btn" id="wechat_official">
                                                                    <i class="layui-icon">&#xe67c;</i>上传图片
                                                                </button>
                                                                <div class="layui-upload-list">
                                                                    <img class="layui-upload-img" id="wechat_official_image" src="{$data.WeChat_official ?? ''}">
                                                                    <p id="wechat_official_text"></p>
                                                                </div>
                                                            </div>
                                                            <input type="hidden" name="WeChat_official" value="{$data.WeChat_official}" placeholder="" autocomplete="off" class="layui-input">
                                                        </div>
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="layui-form-item">
                                                        <label class="layui-form-label">合同公章</label>
                                                        <div class="layui-input-inline">
                                                            <div class="layui-upload">
                                                                <button type="button" class="layui-btn" id="seal_img">
                                                                    <i class="layui-icon">&#xe67c;</i>上传图片
                                                                </button>
                                                                <div class="layui-upload-list">
                                                                    <img class="layui-upload-img" id="seal_img_image" src="{$data.seal_img ?? ''}">
                                                                    <p id="seal_img_text"></p>
                                                                </div>
                                                            </div>
                                                            <input type="hidden" name="seal_img" value="{$data.seal_img}" placeholder="" autocomplete="off" class="layui-input">
                                                        </div>
                                                    </div>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item" style="margin-top: 40px;text-align: center;">
                            <div class="layui-input-block">
                                <button class="layui-btn" lay-submit lay-filter="settingedit">立即提交</button>
                                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript" src="/resource/plugs/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="/resource/plugs/ueditor/ueditor.all.min.js"></script>
<!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
<!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
<script type="text/javascript" src="/resource/plugs/ueditor/lang/zh-cn/zh-cn.js"></script>
<script src="/resource/layuiadmin/layui/layui.js"></script>
<script src="/resource/js/manage/init_date.js"></script>
<script src="/resource/js/manage/base.js"></script>
<script>
//实例化编辑器
//建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
var ue  = UE.getEditor('editor');
var ue2 = UE.getEditor('editor2');
var ue3 = UE.getEditor('editor3');
var ue4 = UE.getEditor('editor4');
var ue5 = UE.getEditor('editor5');
var ue6 = UE.getEditor('editor6');
var ue7 = UE.getEditor('editor7');
</script>
</body>
</html>
